package top.ajunnihao.core.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 门票实体类
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SiteTicket对象", description = "")
public class SiteTicket implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "门票 ID")
    @TableId(value = "ticket_id", type = IdType.AUTO)
    private Long ticketId;

    @ApiModelProperty(value = "门票售价")
    private Integer ticketPrice;

    @ApiModelProperty(value = "景点ID")
    private Long siteId;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "更新日期")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtUpdate;

}
